package com.zego.wawaji.ui.center.address.bean;

import com.zego.wawaji.base.data.BaseData;

import org.json.JSONArray;

import java.util.ArrayList;
import java.util.List;

/**
 * 地址列表
 * Created by Su on 2017/12/1.
 */
public class AddressList extends BaseData {
    private List<Address> addressList = new ArrayList<>();

    @Override
    public void parseJson(String jsonStr) {
        JSONArray jsonArray = getJsonArray(jsonStr);

        this.addressList = (List<Address>) getBaseDataList(jsonArray, Address.class);
    }

    public List<Address> getAddressList() {
        return addressList;
    }
}
